package cn.tedu.tmall.admin.content.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data

@FieldDefaults(level = AccessLevel.PRIVATE)
public class ArticleAddParam implements Serializable {
//    @NotBlank(message = "类别id不能为空")
    @NotNull(message = "类别id不能为空")
    @ApiModelProperty(value = "类别id",required = true,dataType = "Long")
    Long categoryId;

    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "文章标题",required = true,dataType = "String")
    String title;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "文章内容",required = true,dataType = "String")
    String content;


}
